<?php /* Smarty version Smarty-3.1.6, created on 2018-05-30 00:57:10
         compiled from "D:/phpStudy/PHPTutorial/WWW/myshop/Home/View\User\index.html" */ ?>
<?php /*%%SmartyHeaderCode:686872555afaaacf1044a1-07121171%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9104542208a5876bfbd71aaba1326b7bbec8958d' => 
    array (
      0 => 'D:/phpStudy/PHPTutorial/WWW/myshop/Home/View\\User\\index.html',
      1 => 1527613023,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '686872555afaaacf1044a1-07121171',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5afaaacf1df66',
  'variables' => 
  array (
    'my' => 0,
    'info' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5afaaacf1df66')) {function content_5afaaacf1df66($_smarty_tpl) {?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>个人中心</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="<?php echo @PUBLIC_PATH;?>
css/amazeui.min.css"/>
<link rel="stylesheet" href="<?php echo @IMAGES_PATH;?>
style.css"/>
<script src="<?php echo @PUBLIC_PATH;?>
js/jquery.min.js"></script>
<script src="<?php echo @PUBLIC_PATH;?>
js/amazeui.min.js"></script>
<style>
	.order a{
		border:solid 1px white !important;
		box-shadow: 0px 0px 0px white !important;
	}
	.order li{
		padding: 0px;
	}
	.order svg{
		width:60px;
		height: 60px;
		fill:#8E71B2;
	}
	.order-green-ball {
    position: absolute;
    display: inline-block;
    font-size: 12px;
    height: 26px;
    width: 26px;
    line-height: 22px;
    font-size: 18px;
    background-color: #8E71B2;
    color: white;
    border-radius: 50%;
    padding: 2px;
    text-align: center;
    top: 10px;
    right: 0;
    }
</style>
</head>

<body>
<div class="container" style="background-color: #ebebeb;position: relative;">
	<!--引入头文件-->
	<?php echo $_smarty_tpl->getSubTemplate ("../header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

	<script>$('.title-link').text("个人中心")</script>
	
	<div class="uchome-info">
    	<div class="uchome-info-uimg">
        	<img src="<?php echo $_smarty_tpl->tpl_vars['my']->value['touxiang'];?>
" />
        </div>
        <div class="uchome-info-uinfo">
        	<p><?php echo $_smarty_tpl->tpl_vars['my']->value['name'];?>
,欢迎光临！[<a class="white changepwd">修改密码</a>][<a href="<?php echo @__CONTROLLER__;?>
/loginout" class="white">退出登录</a>]</p>
            <p>余额：<span class="red">￥<?php echo $_smarty_tpl->tpl_vars['my']->value['money'];?>
</span></p>
            <p>积分：<span class="red"><?php echo $_smarty_tpl->tpl_vars['my']->value['score'];?>
</span>，消息：<a href="#" class="red">12</a></p>
        </div>
    </div>
    <!--头部导航-->
    <div class="am-cf uchome-nav" style="display: none;">
        <ul class="am-avg-sm-5">
            <li><a href="#">今日签到</a></li>
            <li><a href="#">我的资料</a></li>
            <li><a href="#">我的二维码</a></li>
            <li><a href="#">升级为商家</a></li>
            <li><a href="#">我的伙伴</a></li>
        </ul>
    </div>
    
    <div class="am-cf uchome-apps">
    	<ul class="am-avg-sm-4 uchome-apps-ul order">
        	<li><a href="<?php echo @__MODULE__;?>
/Order/orders/key/1" style="position: relative;"><p class="imgp"><?php if ($_smarty_tpl->tpl_vars['info']->value['orderstatuscount']['waitsend']){?><span class="order-green-ball"><?php echo $_smarty_tpl->tpl_vars['info']->value['orderstatuscount']['waitsend'];?>
</span><?php }?><svg t="1493893965634" class="icon svg-main" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4623" xmlns:xlink="http://www.w3.org/1999/xlink" width="150" height="150"><defs><style type="text/css"></style></defs><path d="M352 576 224 576c-17.664 0-32-14.304-32-32 0-17.664 14.336-32 32-32l96 0 0-96c0-17.664 14.336-32 32-32s32 14.336 32 32l0 128C384 561.696 369.664 576 352 576z" p-id="4624"></path><path d="M702.144 666.88c-61.952 0-113.664 43.296-127.296 101.12l-123.808 0c-13.568-57.888-65.344-101.216-127.328-101.216-72.288 0-131.104 58.784-131.104 131.072 0 72.352 58.816 131.232 131.104 131.232 60.384 0 110.848-41.344 125.984-97.056l126.432 0c15.104 55.712 65.568 96.992 126.016 96.992 72.224 0 131.008-58.784 131.008-131.072S774.368 666.88 702.144 666.88zM323.744 865.056c-36.992 0-67.104-30.144-67.104-67.232 0-36.96 30.08-67.072 67.104-67.072 36.992 0 67.072 30.08 67.072 67.072C390.816 834.912 360.736 865.056 323.744 865.056zM702.144 864.992c-36.96 0-67.072-30.08-67.072-67.072s30.08-67.072 67.072-67.072c36.928 0 67.008 30.08 67.008 67.072S739.104 864.992 702.144 864.992z" p-id="4625"></path><path d="M864.032 96 399.744 96C355.776 96 320 131.776 320 175.744l0 92.512L125.344 366.08c-1.376 0.704-2.72 1.504-4 2.4-36.096 25.376-56 64.96-56 111.52l0 321.984c0 17.696 14.336 32 32 32s32-14.304 32-32L129.344 480c0-25.024 9.088-44.512 27.04-57.888l209.984-105.504c1.44-0.704 2.368-1.984 3.648-2.88 1.888-1.312 3.776-2.496 5.312-4.16 1.408-1.536 2.336-3.328 3.424-5.056 1.088-1.728 2.24-3.328 2.976-5.28 0.8-2.176 1.024-4.416 1.344-6.688C383.328 290.976 384 289.6 384 288L384 175.744C384 167.072 391.072 160 399.744 160l464.288 0C881.664 160 896 174.592 896 192.512L896 800c0 17.696 14.304 32 32 32s32-14.304 32-32L960 192.512C960 139.296 916.928 96 864.032 96z" p-id="4626"></path></svg></p><p class="namep">待发货</p></a></li>
        	<li><a href="<?php echo @__MODULE__;?>
/Order/orders/key/2" style="position: relative;"><p class="imgp"><?php if ($_smarty_tpl->tpl_vars['info']->value['orderstatuscount']['waitreceive']){?><span class="order-green-ball"><?php echo $_smarty_tpl->tpl_vars['info']->value['orderstatuscount']['waitreceive'];?>
</span><?php }?><svg t="1493893902079" class="icon svg-main" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4493" xmlns:xlink="http://www.w3.org/1999/xlink" width="150" height="150"><defs><style type="text/css"></style></defs><path d="M287.008 512 224.992 512c-17.664 0-32-14.336-32-32s14.336-32 32-32l62.016 0c17.664 0 32 14.336 32 32S304.672 512 287.008 512z" p-id="4494"></path><path d="M882.624 128 141.44 128C98.72 128 64 162.688 64 205.376l0 154.624 0 8.48 0 458.016c0 38.304 31.936 69.472 71.168 69.472l753.696 0c39.264 0 71.168-31.168 71.168-69.472L960.032 368.48 960.032 205.376C960 162.688 925.28 128 882.624 128zM896 205.376l0 131.104-223.488 0L672.512 192l210.112 0C889.984 192 896 198.016 896 205.376zM446.688 192l161.824 0 0 360.448-70.784-28.224c-7.712-3.104-16.352-3.04-24 0.128l-67.04 27.52L446.688 192zM128 205.376C128 198.016 134.016 192 141.44 192l241.248 0 0 144.48L128 336.48 128 205.376zM888.832 831.968 135.168 831.968C130.944 831.968 128 829.088 128 826.496L128 400.48l254.688 0 0 199.168c0 10.656 5.312 20.64 14.176 26.592 5.344 3.552 11.552 5.408 17.824 5.408 4.096 0 8.256-0.768 12.16-2.4l99.232-40.736 102.592 40.864c9.856 3.968 21.024 2.72 29.824-3.232 8.768-5.984 14.016-15.872 14.016-26.496l0-199.168L896 400.48l0 426.016C896 829.088 893.056 831.968 888.832 831.968z" p-id="4495"></path></svg></p><p class="namep">待收货</p></a></li>
        	<li><a href="<?php echo @__MODULE__;?>
/Order/orders/key/3" style="position: relative;"><p class="imgp"><?php if ($_smarty_tpl->tpl_vars['info']->value['orderstatuscount']['waitcomment']){?><span class="order-green-ball"><?php echo $_smarty_tpl->tpl_vars['info']->value['orderstatuscount']['waitcomment'];?>
</span><?php }?><svg t="1493894009954" class="icon svg-main" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4754" xmlns:xlink="http://www.w3.org/1999/xlink" width="150" height="150"><defs><style type="text/css"></style></defs><path d="M405.536 932.128c-8.8 0-17.568-3.584-23.904-10.688-83.232-93.216-217.856-94.112-220.64-94.112-0.096 0-0.096 0-0.192 0-17.568 0-31.904-14.176-32.032-31.744-0.128-17.664 14.016-32.064 31.648-32.256 6.656-0.352 165.664-0.192 268.96 115.488 11.776 13.184 10.624 33.408-2.56 45.184C420.736 929.44 413.12 932.128 405.536 932.128z" p-id="4755"></path><path d="M620.128 932.064c-7.776 0-15.584-2.816-21.76-8.544-12.96-12-13.76-32.256-1.728-45.216 106.976-115.52 262.752-115.392 268.896-115.136 17.696 0.192 31.872 14.656 31.68 32.32-0.192 17.568-14.464 31.68-32 31.68-0.096 0-0.16 0-0.256 0L864.96 827.168c-2.656 0-134.56 0.864-221.376 94.624C637.312 928.64 628.704 932.064 620.128 932.064z" p-id="4756"></path><path d="M563.712 769.312l-101.408 0c-3.232 0-6.368-0.48-9.344-1.408-108.256-13.888-200.256-76.704-259.552-177.44C124.576 473.472 108.8 321.888 154.208 213.248c4.896-11.68 16.224-19.392 28.896-19.648l9.632-0.096c60.96 0 117.888 11.52 169.696 34.304 37.44-68.448 80.192-120.384 127.328-154.688 2.496-2.176 5.344-4 8.512-5.344l0 0c9.888-4.288 21.376-3.36 30.432 2.528 1.568 1.024 3.04 2.176 4.384 3.456 47.264 34.688 88.832 85.856 126.464 155.744 52.832-23.872 111.072-35.968 173.632-35.968l9.792 0.096c12.672 0.256 24 7.968 28.896 19.648 45.408 108.672 29.664 260.256-39.232 377.248-59.296 100.672-151.264 163.52-259.488 177.44C570.112 768.8 566.976 769.312 563.712 769.312zM468 705.312l90.016 0c0.672-0.128 1.376-0.224 2.08-0.32 115.712-12.864 182.08-87.072 217.376-147.008 54.048-91.872 70.432-211.936 42.528-300.32-58.24 1.888-111.616 16.16-158.816 42.528-7.712 4.288-16.832 5.184-25.184 2.624-8.384-2.624-15.328-8.608-19.2-16.512-32.448-66.368-67.232-115.2-105.824-148.48-38.624 33.216-74.176 82.4-105.92 146.592-3.872 7.808-10.72 13.696-19.04 16.32-8.32 2.656-17.28 1.76-24.96-2.4C314.848 273.216 262.72 259.552 206.048 257.696c-27.904 88.384-11.52 208.448 42.528 300.288 35.296 59.936 101.632 134.112 217.312 147.008C466.592 705.088 467.296 705.184 468 705.312z" p-id="4757"></path><path d="M512.768 960c-17.664 0-32-14.304-32-32l0-190.688c0-17.696 14.336-32 32-32s32 14.304 32 32L544.768 928C544.736 945.696 530.432 960 512.768 960z" p-id="4758"></path></svg></p><p class="namep">待评价</p></a></li>
        	<li><a href="<?php echo @__MODULE__;?>
/Order/orders/key/4" style="position: relative;"><p class="imgp"><?php if ($_smarty_tpl->tpl_vars['info']->value['orderstatuscount']['waitrefund']){?><span class="order-green-ball"><?php echo $_smarty_tpl->tpl_vars['info']->value['orderstatuscount']['waitrefund'];?>
</span><?php }?><svg t="1493893748103" class="icon svg-main" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4362" xmlns:xlink="http://www.w3.org/1999/xlink" width="150" height="150"><defs><style type="text/css"></style></defs><path d="M799.488 900.448 159.936 900.448c-52.928 0-96-43.072-96-96L63.936 225.952c0-52.928 43.072-96 96-96l642.496 0c52.928 0 96 43.072 96 96L898.432 320c0 17.664-14.304 32-32 32s-32-14.336-32-32L834.432 225.952c0-17.632-14.336-32-32-32L159.936 193.952c-17.632 0-32 14.368-32 32l0 578.496c0 17.664 14.368 32 32 32l639.552 0c17.664 0 32-14.336 32-32l0-98.944c0-17.696 14.304-32 32-32s32 14.304 32 32l0 98.944C895.488 857.376 852.448 900.448 799.488 900.448z" p-id="4363"></path><path d="M661.472 514.112m-31.328 0a0.979 0.979 0 1 0 62.656 0 0.979 0.979 0 1 0-62.656 0Z" p-id="4364"></path><path d="M896 640 576 640c-35.296 0-64-28.704-64-64l0-128c0-35.296 28.704-64 64-64l320 0c35.296 0 64 28.704 64 64l0 128C960 611.296 931.296 640 896 640zM576 448l0 128 320.064 0L896 448 576 448z" p-id="4365"></path></svg></p><p class="namep">待退款</p></a></li>
    		
    	</ul>
    	
    </div>
    <div class="am-cf uchome-apps" style="padding-top:0px;margin-top: 8px;">
    	<ul class="am-avg-sm-3 uchome-apps-ul">
        	<li><a href="<?php echo @__MODULE__;?>
/Order/orders"><p class="imgp"><img src="<?php echo @IMAGES_PATH;?>
uhomeapp1.png" class="am-img-responsive" /></p><p class="namep">我的订单</p><p class="lastp"><?php echo $_smarty_tpl->tpl_vars['info']->value['goods_order_count'];?>
笔</p></a></li>
            <li><a href="<?php echo @__MODULE__;?>
/User/shopcartlist"><p class="imgp"><img src="<?php echo @IMAGES_PATH;?>
uhomeapp4.png" class="am-img-responsive" /></p><p class="namep">购物车</p><p class="lastp"><?php echo $_smarty_tpl->tpl_vars['info']->value['goods_cart_count'];?>
件</p></a></li>
            <li><a href="<?php echo @__CONTROLLER__;?>
/favlist"><p class="imgp"><img src="<?php echo @IMAGES_PATH;?>
uhomeapp7.png" class="am-img-responsive" /></p><p class="namep">收藏商品</p><p class="lastp"><?php echo $_smarty_tpl->tpl_vars['info']->value['goods_fav_count'];?>
件</p></a></li>
            <li><a href="<?php echo @__CONTROLLER__;?>
/registerinfo"><p class="imgp"><img src="<?php echo @IMAGES_PATH;?>
uhomeapp12.png" class="am-img-responsive" /></p><p class="namep">注册资料</p><p class="lastp">&nbsp;</p></a></li>
            <li><a href="#"><p class="imgp"><img src="<?php echo @IMAGES_PATH;?>
uhomeapp13.png" class="am-img-responsive" /></p><p class="namep">金币充值</p><p class="lastp">￥0</p></a></li>
            <li><a href="<?php echo @__CONTROLLER__;?>
/address"><p class="imgp"><svg style="width: 60px;height: 60px;" t="1497930494426" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1724" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M896 384C896 663.296 571.08 991.424 557.264 1005.256 544.768 1017.752 528.376 1024 512 1024 495.624 1024 479.248 1017.752 466.752 1005.256 452.92 991.424 128 663.296 128 384 128 172.264 300.264 0 512 0 723.736 0 896 172.264 896 384L896 384ZM512 576C618.048 576 704 490.048 704 384 704 277.968 618.048 192 512 192 405.968 192 320 277.968 320 384 320 490.048 405.968 576 512 576L512 576Z" p-id="1725" fill="#39cb80"></path></svg></p><p class="namep">收货地址</p><p class="lastp"><?php echo $_smarty_tpl->tpl_vars['info']->value['address_count'];?>
</p></a></li>
    	</ul>
    	
    </div>
    <!--修改密码-->
    <div class="pwddiv" style="position: absolute;top:0;z-index: 999;background: rgba(0,0,0,0.5);width:100%;height: 100%;display: none;">
		<form class="am-form" action="<?php echo @__CONTROLLER__;?>
/changepwd" method="post" onsubmit="return checkdata()" style="position: absolute;top:30%;left:10%;width:80%;background-color: white;padding: 10%;"  data-am-validator>
			<i class="am-icon-times-circle am-icon-sm close" style="position: absolute;top:10px;right:10px;"></i>
            <div class="am-form-group am-form-icon">
                <i class="am-icon-lock" style="color:#329cd9"></i>
                <input type="password" name="oripwd" id="oripwd" class="am-form-field  my-radius" placeholder="请输入原密码" required>
            </div>
            <div class="am-form-group am-form-icon">
                <i class="am-icon-lock" style="color:#329cd9"></i>
                <input type="password" name="newpwd" class="am-form-field my-radius" id="newpwd" placeholder="请输入新密码" required>
            </div>
            <div class="am-form-group am-form-icon">
                <i class="am-icon-lock" style="color:#e9c740"></i>
                <input type="password" id="newerpwd" class="am-form-field  my-radius" placeholder="请重复新密码" data-equal-to="#newpwd" required>
            </div>
            <p class="am-text-center"><button type="submit" class="am-btn am-btn-danger am-radius am-btn-block submit">立即修改</button></p>
        </form>
    </div>
    
    <footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }">
        <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
      <div class="am-footer-miscs ">
        <p></p>
        <p>京ICP备13033158</p>
      </div>
    </footer>
     <!--底部-->
    <?php echo $_smarty_tpl->getSubTemplate ("../footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div>
<script type="text/javascript">
	$(".pwddiv").height($(".container").height());
	$('.changepwd').click(function(){
		$('.pwddiv').slideDown();
	})
	$('.close').click(function(){
		$('.pwddiv').slideUp();
	})
//	$('.submit').click(function(){
//		var data={
//				oripwd:$('#oripwd').val(),
//				newpwd:$('#newpwd').val(),
//			};
//			console.log(data);
//		$.post("<?php echo @__CONTROLLER__;?>
/setfirstaddress", data, function(ret){
//				console.log(ret);
//				if(ret) window.location.reload();
//			})
//	})
function checkdata(){
	var data={
				oripwd:$('#oripwd').val(),
				newpwd:$('#newpwd').val(),
				newerpwd:$('#newerpwd').val(),
			};
			console.log(data);
			if(data.newerpwd!=data.newpwd){
				alert("两次输入密码不一致");
			}else{
				$.post("<?php echo @__CONTROLLER__;?>
/changepwdbyajax", data, function(ret){
					console.log(ret);
					if(ret.errorcode){
						alert(ret.error);
					}else{
						$('.pwddiv').slideUp();
					}
				})  
			}
    return false; // 返回false，阻止跳转  
}
</script>
</body>
</html>
<?php }} ?>